//
//  NSMutableAttributedString+Category.h
//  OnionHome
//
//  Created by fengjie on 2019/9/21.
//  Copyright © 2019 FengJie. All rights reserved.
//



#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSMutableAttributedString (Category)

/*
 *【快速创建属性字符串】
 * @param string  字符串
 * @param block   返回attributes
 */
+(NSMutableAttributedString *)makeAttributeString:(NSString *)string Attribute:(void(^)(NSMutableDictionary * attributes))block;
/*
 *【拼接属性字符串】
 * @param string  字符串
 * @param block   返回attributes
 */
-(NSMutableAttributedString *)makeAttributeStringAdd:(NSString *)string Attribute:(void(^)(NSMutableDictionary * attributes))block;
/**
 插入表情到字符串中
 
 @param imageStr 图片名称
 @param imagFrame 图片frame
 @param index 插入位置角标
 @return 返回
 */
-(NSMutableAttributedString *)makeAttributeStringinser:(NSString *)imageStr imageFrame:(CGRect)imagFrame Index:(NSInteger)index;
@end

NS_ASSUME_NONNULL_END
